package com.ruoyi.project.orderSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.orderSystem.mapper.VDeclareImageMapper;
import com.ruoyi.project.orderSystem.domain.VDeclareImage;
import com.ruoyi.project.orderSystem.service.IVDeclareImageService;

/**
 * 申报图片Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-02-03
 */
@Service
public class VDeclareImageServiceImpl implements IVDeclareImageService 
{
    @Autowired
    private VDeclareImageMapper vDeclareImageMapper;

    /**
     * 查询申报图片
     * 
     * @param id 申报图片ID
     * @return 申报图片
     */
    @Override
    public VDeclareImage selectVDeclareImageById(Long id)
    {
        return vDeclareImageMapper.selectVDeclareImageById(id);
    }

    /**
     * 查询申报图片列表
     * 
     * @param vDeclareImage 申报图片
     * @return 申报图片
     */
    @Override
    public List<VDeclareImage> selectVDeclareImageList(VDeclareImage vDeclareImage)
    {
        return vDeclareImageMapper.selectVDeclareImageList(vDeclareImage);
    }

    /**
     * 新增申报图片
     * 
     * @param vDeclareImage 申报图片
     * @return 结果
     */
    @Override
    public int insertVDeclareImage(VDeclareImage vDeclareImage)
    {
        return vDeclareImageMapper.insertVDeclareImage(vDeclareImage);
    }

    /**
     * 修改申报图片
     * 
     * @param vDeclareImage 申报图片
     * @return 结果
     */
    @Override
    public int updateVDeclareImage(VDeclareImage vDeclareImage)
    {
        return vDeclareImageMapper.updateVDeclareImage(vDeclareImage);
    }

    /**
     * 批量删除申报图片
     * 
     * @param ids 需要删除的申报图片ID
     * @return 结果
     */
    @Override
    public int deleteVDeclareImageByIds(Long[] ids)
    {
        return vDeclareImageMapper.deleteVDeclareImageByIds(ids);
    }

    /**
     * 删除申报图片信息
     * 
     * @param id 申报图片ID
     * @return 结果
     */
    @Override
    public int deleteVDeclareImageById(Long id)
    {
        return vDeclareImageMapper.deleteVDeclareImageById(id);
    }
}
